<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>arduino-audio-driver: src/DriverPins.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">arduino-audio-driver
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">DriverPins.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_driver_pins_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;Wire.h&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;SPI.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_driver_common_8h.html">DriverCommon.h</a>&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_optional_8h.html">Utils/Optional.h</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_vector_8h.html">Utils/Vector.h</a>&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef TOUCH_LIMIT</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="_driver_pins_8h.html#afe31fa239b035c625e0677db1bff910b">   10</a></span>&#160;<span class="preprocessor">#  define TOUCH_LIMIT 20</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#ifndef LYRAT_MINI_RANGE</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="_driver_pins_8h.html#a176edb2f120294a1bb3c7d73d8a0bb62">   14</a></span>&#160;<span class="preprocessor">#  define LYRAT_MINI_RANGE 5</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#ifndef LYRAT_MINI_DELAY_MS</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="_driver_pins_8h.html#ac23b11cfe662ad3f945920ff7149d815">   18</a></span>&#160;<span class="preprocessor">#  define LYRAT_MINI_DELAY_MS 5</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceaudio__driver.html">audio_driver</a> {</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">   25</a></span>&#160;<span class="keyword">using</span> <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> = int16_t;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="group__enumerations.html#ga541db2b810d671856e3d258a0e184d4f">   33</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="group__enumerations.html#ga541db2b810d671856e3d258a0e184d4f">PinLogic</a> {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fad1f4343083391d4134755122ffd1bdad">InputActiveHigh</a>,</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">InputActiveLow</a>,</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa5b29dd72614886bd07cc85d9efc6e11b">InputActiveTouch</a>,</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa324118a6721dd6b8a9b9f4e327df2bf5">Input</a>,</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">Output</a>,</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa3cab03c00dbd11bc3569afa0748013f0">Inactive</a>,</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;};</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">   48</a></span>&#160;<span class="keyword">enum class</span> <a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> {</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa0db45d2a4141101bdfe48e3314cfbca3">UNDEFINED</a> = 0,</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa9decb49b0b8a11118da5ae919a09e766">HEADPHONE_DETECT</a>,</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafadba053ed3f4606dd1426d1b170ef106b">AUXIN_DETECT</a>,</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">PA</a>,  <span class="comment">// Power Amplifier</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafac9c9c146c630ca5ef9197c73c032f4a6">POWER</a>,</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">LED</a>,</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">KEY</a>,</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa38f99abbc1d339c277c0669e7bc373c0">SD</a>,</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">CODEC</a>,</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafacc567fdd9cbeac32e7b50b6ffd06f0d4">CODEC_ADC</a>,</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafab6e3c1cdb5c43961a2e081ef2564ba2e">LATCH</a>,</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafab5859d8721cfdc0312b2838b9c985bc1">RESET</a>,</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa0301a754913dd38062217d6b511a1696">MCLK_SOURCE</a>,</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;};</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="group__audio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18">   71</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__audio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18">AudioDriverKey</a> {</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18aa67b95b87566b12f21da0f8dc7224e9c">   72</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18aa67b95b87566b12f21da0f8dc7224e9c">KEY_REC</a> = 0,</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a1b0a91ff3a855d6993930ebf0abaa518">   73</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a1b0a91ff3a855d6993930ebf0abaa518">KEY_MODE</a>,</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a55c7db415d84b1af47010601aa8053e7">   74</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a55c7db415d84b1af47010601aa8053e7">KEY_PLAY</a>,</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a368a9f9c881efcaf697bdbd9d6e5cd8d">   75</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a368a9f9c881efcaf697bdbd9d6e5cd8d">KEY_SET</a>,</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a2304f457aba66febcf852dbf1cbae8b0">   76</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a2304f457aba66febcf852dbf1cbae8b0">KEY_VOLUME_DOWN</a>,</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  <a class="code" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18aedbb585f9e7ee87263a250c91542fb02">KEY_VOLUME_UP</a></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18aedbb585f9e7ee87263a250c91542fb02">   78</a></span>&#160;};</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html">   85</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structaudio__driver_1_1_pins_i2_s.html">PinsI2S</a> {</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a5e6e78c05e863124b3a66b46fa4e2370">   86</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a5e6e78c05e863124b3a66b46fa4e2370">PinsI2S</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a08fd44e3f772a1d565da79e42a02f18d">   87</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a08fd44e3f772a1d565da79e42a02f18d">PinsI2S</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ae4420d2deba4632c54badb549d9cfb37">mclk</a>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a8c7a8c2803dd2899881ecc66ac0c8366">bck</a>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a0e25036823a3287fa16f299cb6295873">ws</a>,</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;          <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ab7f9508e45dcba4a7ea4d07626966dfa">data_out</a>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#aea33a3f8aa9758519c4bc3ff146440b4">data_in</a> = -1, <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">port</a> = 0) {</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    this-&gt;<span class="keyword">function</span> = <span class="keyword">function</span>;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    this-&gt;mclk = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ae4420d2deba4632c54badb549d9cfb37">mclk</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    this-&gt;bck = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a8c7a8c2803dd2899881ecc66ac0c8366">bck</a>;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    this-&gt;ws = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a0e25036823a3287fa16f299cb6295873">ws</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    this-&gt;data_out = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ab7f9508e45dcba4a7ea4d07626966dfa">data_out</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_s.html#aea33a3f8aa9758519c4bc3ff146440b4">data_in</a> = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#aea33a3f8aa9758519c4bc3ff146440b4">data_in</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">port</a> = <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">port</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  }</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#ada2a63b4baedf5b15ec9eaf1c575d208">   97</a></span>&#160;  <a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#ae4420d2deba4632c54badb549d9cfb37">   98</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ae4420d2deba4632c54badb549d9cfb37">mclk</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a8c7a8c2803dd2899881ecc66ac0c8366">   99</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a8c7a8c2803dd2899881ecc66ac0c8366">bck</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a0e25036823a3287fa16f299cb6295873">  100</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a0e25036823a3287fa16f299cb6295873">ws</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#ab7f9508e45dcba4a7ea4d07626966dfa">  101</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ab7f9508e45dcba4a7ea4d07626966dfa">data_out</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#aea33a3f8aa9758519c4bc3ff146440b4">  102</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#aea33a3f8aa9758519c4bc3ff146440b4">data_in</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">  103</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">port</a>;  <span class="comment">// port number</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;};</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html">  111</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> {</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#aaacbe29a5f1f6ddc9db766aba5c8155e">  112</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aaacbe29a5f1f6ddc9db766aba5c8155e">PinsSPI</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#aa6c887a5f0a8006909fef52ec4eccf12">  113</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aa6c887a5f0a8006909fef52ec4eccf12">PinsSPI</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">clk</a>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">miso</a>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">mosi</a>,</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;          <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a>, SPIClass &amp;spi = SPI) {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    this-&gt;<span class="keyword">function</span> = <span class="keyword">function</span>;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    this-&gt;clk = <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">clk</a>;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    this-&gt;miso = <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">miso</a>;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    this-&gt;mosi = <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">mosi</a>;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    this-&gt;cs = <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a>;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a> = &amp;spi;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;  }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#ada2a63b4baedf5b15ec9eaf1c575d208">  123</a></span>&#160;  <a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>;</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">  124</a></span>&#160;  SPIClass *<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a> = &amp;SPI;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">  125</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">clk</a> = -1;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">  126</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">miso</a> = -1;</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">  127</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">mosi</a> = -1;</div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">  128</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a> = -1;</div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#afcc542ba9c5c0e2fbba65a0feab74508">  129</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">  130</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>() { <span class="keywordflow">return</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">clk</a> != -1 &amp;&amp; <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">miso</a> != -1 &amp;&amp; <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">mosi</a> != -1; }</div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a9b3baad8c612d81b96e46f84d7e97580">  131</a></span>&#160;  <span class="keyword">operator</span> bool() { <span class="keywordflow">return</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>(); }</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#a601fb7cf1fc15db50c71a826f084f934">  132</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a601fb7cf1fc15db50c71a826f084f934">begin</a>() {</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a>) {</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;      <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;PinsSPI::begin for %d&quot;</span>, <span class="keyword">function</span>);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;      <span class="comment">// setup chip select</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a> != -1) {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <a class="code" href="etc_8h.html#a5fc313e20cf591fdc90c4c3867ac7717">pinMode</a>(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a>, <a class="code" href="etc_8h.html#a61a3c9a18380aafb6e430e79bf596557">OUTPUT</a>);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <a class="code" href="etc_8h.html#afb6322a0aff6851765ab32bfaa5080d6">digitalWrite</a>(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a>, <a class="code" href="etc_8h.html#a5bb885982ff66a2e0a0a45a8ee9c35e2">HIGH</a>);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;      }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;      <span class="comment">// if no pins are defined, just call begin</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;      <span class="keywordflow">if</span> (!<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>()) {</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;setting up SPI w/o pins&quot;</span>);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;begin();</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;      } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="comment">// begin spi and set up pins if supported</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#if defined(ARDUINO_ARCH_STM32)</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;setting up SPI miso:%d,mosi:%d, clk:%d, cs:%d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">miso</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">mosi</a>,</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">clk</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a>);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;setMISO(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">miso</a>);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;setMOSI(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">mosi</a>);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;setSCLK(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">clk</a>);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;setSSEL(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a>);</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;begin();</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#elif defined(ESP32)</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;setting up SPI miso:%d,mosi:%d, clk:%d, cs:%d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">miso</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">mosi</a>,</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">clk</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a>);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;begin(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">clk</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">miso</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">mosi</a>, <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">cs</a>);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">#elif defined(ARDUINO_ARCH_AVR)</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="_logger_8c.html#aea139a2cbe97c9a8e561a011e249a2f7">AD_LOGW</a>(<span class="stringliteral">&quot;setting up SPI w/o pins&quot;</span>);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;begin();</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;      }</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;      <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;SPI, not active, MOSI, MISO, SCLK, SSEL not modified&quot;</span>);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    }</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;  }</div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_s_p_i.html#aaf81d3fdaf258088d7692fa70cece087">  168</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#aaf81d3fdaf258088d7692fa70cece087">end</a>() { </div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;PinsSPI::end&quot;</span>);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">p_spi</a>-&gt;end();</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;   }</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;};</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">  179</a></span>&#160;<span class="keyword">static</span> <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> <a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>{<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa38f99abbc1d339c277c0669e7bc373c0">PinFunction::SD</a>, 14, 2, 15, 13, SPI};</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html">  186</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structaudio__driver_1_1_pins_i2_c.html">PinsI2C</a> {</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a55ca58ba71e8274ece07c6455513ad8e">  187</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a55ca58ba71e8274ece07c6455513ad8e">PinsI2C</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a64bff2ba6d0ee2ba3a79ff999af30243">  188</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a64bff2ba6d0ee2ba3a79ff999af30243">PinsI2C</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">scl</a>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">sda</a>, <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a> = -1,</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;          uint32_t <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> = 100000, TwoWire &amp;wire = Wire, <span class="keywordtype">bool</span> active=<span class="keyword">true</span>) {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    this-&gt;<span class="keyword">function</span> = <span class="keyword">function</span>;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    this-&gt;scl = <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">scl</a>;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    this-&gt;sda = <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">sda</a>;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a> = <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a>;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> = <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a>;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a> = &amp;wire;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a> = active;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;  }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#ada2a63b4baedf5b15ec9eaf1c575d208">  199</a></span>&#160;  <a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>;</div>
<div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">  200</a></span>&#160;  uint32_t <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> = 100000;</div>
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">  201</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a> = -1;</div>
<div class="line"><a name="l00202"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">  202</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">scl</a> = -1;</div>
<div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">  203</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">sda</a> = -1;</div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">  204</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">  205</a></span>&#160;  TwoWire *<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a> = &amp;Wire;</div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">  206</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>() { <span class="keywordflow">return</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">scl</a> != -1 &amp;&amp; <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">sda</a> != -1 &amp;&amp; <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a> != 0; }</div>
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a9b3baad8c612d81b96e46f84d7e97580">  207</a></span>&#160;  <span class="keyword">operator</span> bool() { <span class="keywordflow">return</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>(); }</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#a601fb7cf1fc15db50c71a826f084f934">  209</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a601fb7cf1fc15db50c71a826f084f934">begin</a>() {</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;PinsI2C::begin: %d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">port</a>);</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a>) {</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;      <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;PinsI2C::begin for %d&quot;</span>, <span class="keyword">function</span>);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;      <span class="comment">// if no pins are defined, just call begin</span></div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;      <span class="keywordflow">if</span> (!<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">pinsAvailable</a>()) {</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;        <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;setting up I2C w/o pins&quot;</span>);</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;begin();</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;      } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="comment">// begin with defined pins, if supported</span></div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="preprocessor">#if defined(ESP32)</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;setting up I2C scl: %d, sda: %d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">scl</a>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">sda</a>);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;begin(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">sda</a>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">scl</a>);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="preprocessor">#elif defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_STM32)</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;setting up I2C scl: %d, sda: %d&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">scl</a>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">sda</a>);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;setSCL(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">scl</a>);</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;setSDA(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">sda</a>);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;begin();</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <a class="code" href="_logger_8c.html#aea139a2cbe97c9a8e561a011e249a2f7">AD_LOGW</a>(<span class="stringliteral">&quot;setting up I2C w/o pins&quot;</span>);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;begin();</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;      }</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;      <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;Setting i2c clock: %u&quot;</span>, <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a>);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;      <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;setClock(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">frequency</a>);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;      <a class="code" href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a>(<span class="stringliteral">&quot;I2C, not activated, SDA, SCL, i2c clock not modified&quot;</span>);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    }</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;  }</div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_i2_c.html#aaf81d3fdaf258088d7692fa70cece087">  239</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#aaf81d3fdaf258088d7692fa70cece087">end</a>() {</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="preprocessor">#if !defined(ESP8266) &amp;&amp; FORCE_WIRE_CLOSE</span></div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">set_active</a>) <a class="code" href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">p_wire</a>-&gt;end();</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;  }</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;};</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160; </div>
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_function.html">  251</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structaudio__driver_1_1_pins_function.html">PinsFunction</a> {</div>
<div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_function.html#affc9db000aeafd2b8bc4a905b8ec7467">  252</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_function.html#affc9db000aeafd2b8bc4a905b8ec7467">PinsFunction</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_function.html#a6c2a512f513ff43c0f98a046fbabad03">  253</a></span>&#160;  <a class="code" href="structaudio__driver_1_1_pins_function.html#a6c2a512f513ff43c0f98a046fbabad03">PinsFunction</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="structaudio__driver_1_1_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">pin</a>, <a class="code" href="group__enumerations.html#ga541db2b810d671856e3d258a0e184d4f">PinLogic</a> logic,</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;               <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> = 0) {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    this-&gt;<span class="keyword">function</span> = <span class="keyword">function</span>;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    this-&gt;pin = <a class="code" href="structaudio__driver_1_1_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">pin</a>;</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> = <a class="code" href="structaudio__driver_1_1_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a>;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    this-&gt;<a class="code" href="structaudio__driver_1_1_pins_function.html#abb771316816bb9f9b1ccb016bbdbad5e">pin_logic</a> = logic;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;  }</div>
<div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_function.html#ada2a63b4baedf5b15ec9eaf1c575d208">  260</a></span>&#160;  <a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>;</div>
<div class="line"><a name="l00261"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">  261</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">pin</a> = -1;</div>
<div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">  262</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="structaudio__driver_1_1_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">index</a> = 0;</div>
<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_function.html#abb771316816bb9f9b1ccb016bbdbad5e">  263</a></span>&#160;  <a class="code" href="group__enumerations.html#ga541db2b810d671856e3d258a0e184d4f">PinLogic</a> <a class="code" href="structaudio__driver_1_1_pins_function.html#abb771316816bb9f9b1ccb016bbdbad5e">pin_logic</a>;</div>
<div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="structaudio__driver_1_1_pins_function.html#a03c996f9fcf0e10baeb3e700be0c409a">  264</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="structaudio__driver_1_1_pins_function.html#a03c996f9fcf0e10baeb3e700be0c409a">active</a> = <span class="keyword">true</span>;  <span class="comment">// false if pin conflict</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;};</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160; </div>
<div class="line"><a name="l00273"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html">  273</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ad10ad3df25bb2be692f416ecc739540e">  275</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_driver_pins.html#ad10ad3df25bb2be692f416ecc739540e">DriverPins</a> (<span class="keyword">const</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00276"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a2c7d3ef52527f46862f1bf7b349a6ef4">  276</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a>&amp; <a class="code" href="classaudio__driver_1_1_driver_pins.html#a2c7d3ef52527f46862f1bf7b349a6ef4">operator= </a>(<span class="keyword">const</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ab6010b03b335e0362f5aca37aab76f82">  277</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_driver_pins.html#ab6010b03b335e0362f5aca37aab76f82">DriverPins</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160; </div>
<div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">  279</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(<a class="code" href="structaudio__driver_1_1_pins_i2_s.html">PinsI2S</a> pin) {</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#aceacff71fe3519254eb9c4afb4e4e959">getI2SPins</a>(pin.<a class="code" href="structaudio__driver_1_1_pins_i2_s.html#ada2a63b4baedf5b15ec9eaf1c575d208">function</a>)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0a595946501467f993c4cc65dac0972b">i2s</a>.push_back(pin);</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;  }</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160; </div>
<div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a3493e552b008d1593594675135f88400">  285</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a3493e552b008d1593594675135f88400">addI2S</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> mclk, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> bck, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> ws,</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;              <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> data_out, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> data_in = -1, <span class="keywordtype">int</span> port = 0) {</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_i2_s.html">PinsI2S</a> pin{<span class="keyword">function</span>, mclk, bck, ws, data_out, data_in, port};</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(pin);</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;  }</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;  </div>
<div class="line"><a name="l00292"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#adeb8e9ed06517c8f88db264c95a3bd50">  292</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#adeb8e9ed06517c8f88db264c95a3bd50">setI2S</a>(<a class="code" href="structaudio__driver_1_1_pins_i2_s.html">PinsI2S</a> pin) { <span class="keywordflow">return</span> set&lt;PinsI2S&gt;(pin, <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0a595946501467f993c4cc65dac0972b">i2s</a>); }</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160; </div>
<div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">  294</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">addSPI</a>(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> pin) {</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#a8dbb11da0473a677756920d373d2068f">getSPIPins</a>(pin.<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html#ada2a63b4baedf5b15ec9eaf1c575d208">function</a>)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>.push_back(pin);</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;  }</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;  </div>
<div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#acc5de9c570f490b7fd2ba8f1ec9e9199">  300</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#acc5de9c570f490b7fd2ba8f1ec9e9199">addSPI</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> clk, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> miso, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> mosi,</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;              <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> cs, SPIClass &amp;<a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a> = SPI) {</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> pin(<span class="keyword">function</span>, clk, miso, mosi, cs, <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>);</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">addSPI</a>(pin);</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;  }</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;  </div>
<div class="line"><a name="l00307"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ab33faa4563eb42152aad851515ab71c6">  307</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ab33faa4563eb42152aad851515ab71c6">setSPI</a>(<a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> pin) { <span class="keywordflow">return</span> set&lt;PinsSPI&gt;(pin, <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>); }</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160; </div>
<div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">  309</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html">PinsI2C</a> pin) {</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#a052842a7d29e1b90185c1d57fc16f5d2">getI2CPins</a>(pin.<a class="code" href="structaudio__driver_1_1_pins_i2_c.html#ada2a63b4baedf5b15ec9eaf1c575d208">function</a>)) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">i2c</a>.push_back(pin);</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;  }</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;  </div>
<div class="line"><a name="l00315"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a62a8b892dc4322ea673b7ef456e0bc42">  315</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a62a8b892dc4322ea673b7ef456e0bc42">addI2C</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> scl, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> sda, <span class="keywordtype">int</span> port = -1,</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;              uint32_t frequency = 100000, TwoWire &amp;wire = Wire, <span class="keywordtype">bool</span> active = <span class="keyword">true</span>) {</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_i2_c.html">PinsI2C</a> pin(<span class="keyword">function</span>, scl, sda, port, frequency, wire, active);</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(pin);</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;  }</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160; </div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#af1a5145719e020a308584fcfa0ed2e83">  322</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#af1a5145719e020a308584fcfa0ed2e83">addI2C</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, TwoWire &amp;wire, <span class="keywordtype">bool</span> setActive = <span class="keyword">false</span>) {</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_i2_c.html">PinsI2C</a> pin(<span class="keyword">function</span>, -1, -1, -1, -1, wire, setActive);</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(pin);</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;  }</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160; </div>
<div class="line"><a name="l00328"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a02307a24baa775b8367cb9141ac71147">  328</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a02307a24baa775b8367cb9141ac71147">setI2C</a>(<a class="code" href="structaudio__driver_1_1_pins_i2_c.html">PinsI2C</a> pin) { <span class="keywordflow">return</span> set&lt;PinsI2C&gt;(pin, <a class="code" href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">i2c</a>); }</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160; </div>
<div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">  330</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="structaudio__driver_1_1_pins_function.html">PinsFunction</a> pin) {</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>.push_back(pin);</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;  }</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; </div>
<div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a6069cc9ea7b789c160ff524253c65c73">  335</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a6069cc9ea7b789c160ff524253c65c73">addPin</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> pinNo, <a class="code" href="group__enumerations.html#ga541db2b810d671856e3d258a0e184d4f">PinLogic</a> logic,</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;              <span class="keywordtype">int</span> index = 0) {</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_function.html">PinsFunction</a> pin(<span class="keyword">function</span>, pinNo, logic, index);</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(pin);</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;  }</div>
<div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ac646952f3e3a83b09be99589361bd8f6">  341</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_optional.html">audio_driver_local::Optional&lt;PinsFunction&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac646952f3e3a83b09be99589361bd8f6">getPin</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <span class="keywordtype">int</span> pos = 0) {</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="structaudio__driver_1_1_pins_function.html">PinsFunction</a> &amp;pin : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>) {</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;      <span class="keywordflow">if</span> (pin.function == <span class="keyword">function</span> &amp;&amp; pin.index == pos) <span class="keywordflow">return</span> pin;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    }</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;  }</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160; </div>
<div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a60e96ddd89c7a917acb118323522d197">  349</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_optional.html">audio_driver_local::Optional&lt;PinsFunction&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a60e96ddd89c7a917acb118323522d197">getPin</a>(<a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> pinId) {</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="structaudio__driver_1_1_pins_function.html">PinsFunction</a> &amp;pin : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>) {</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;      <span class="keywordflow">if</span> (pin.pin == pinId) <span class="keywordflow">return</span> pin;</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    }</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;  }</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160; </div>
<div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a1bec8cca54681dc1e21f9a5281642dc7">  356</a></span>&#160;  <a class="code" href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">GpioPin</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1bec8cca54681dc1e21f9a5281642dc7">getPinID</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <span class="keywordtype">int</span> pos = 0) {</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    <span class="keyword">auto</span> pin = <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac646952f3e3a83b09be99589361bd8f6">getPin</a>(<span class="keyword">function</span>, pos);</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    <span class="keywordflow">if</span> (pin) <span class="keywordflow">return</span> pin.value().pin;</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordflow">return</span> -1;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;  }</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160; </div>
<div class="line"><a name="l00363"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a052842a7d29e1b90185c1d57fc16f5d2">  363</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_optional.html">audio_driver_local::Optional&lt;PinsI2C&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a052842a7d29e1b90185c1d57fc16f5d2">getI2CPins</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>) {</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_i2_c.html">PinsI2C</a> *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> = getPtr&lt;PinsI2C&gt;(<span class="keyword">function</span>, <a class="code" href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">i2c</a>);</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> == <span class="keyword">nullptr</span>) <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    <span class="keywordflow">return</span> *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>;</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;  }</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160; </div>
<div class="line"><a name="l00370"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a8dbb11da0473a677756920d373d2068f">  370</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_optional.html">audio_driver_local::Optional&lt;PinsSPI&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a8dbb11da0473a677756920d373d2068f">getSPIPins</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>) {</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> = getPtr&lt;PinsSPI&gt;(<span class="keyword">function</span>, <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>);</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> == <span class="keyword">nullptr</span>) <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <span class="keywordflow">return</span> *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>;</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;  }</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160; </div>
<div class="line"><a name="l00377"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#aceacff71fe3519254eb9c4afb4e4e959">  377</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_optional.html">audio_driver_local::Optional&lt;PinsI2S&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#aceacff71fe3519254eb9c4afb4e4e959">getI2SPins</a>(<span class="keywordtype">int</span> port) {</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="structaudio__driver_1_1_pins_i2_s.html">PinsI2S</a> &amp;<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0a595946501467f993c4cc65dac0972b">i2s</a>) {</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>.port == port) <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>;</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    }</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;    <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;  }</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160; </div>
<div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a31bde529a2132b702b7a0e492adf5d61">  385</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_optional.html">audio_driver_local::Optional&lt;PinsI2S&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a31bde529a2132b702b7a0e492adf5d61">getI2SPins</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span> = <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>) {</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <a class="code" href="structaudio__driver_1_1_pins_i2_s.html">PinsI2S</a> *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> = getPtr&lt;PinsI2S&gt;(<span class="keyword">function</span>, <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0a595946501467f993c4cc65dac0972b">i2s</a>);</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> == <span class="keyword">nullptr</span>) <span class="keywordflow">return</span> {};</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keywordflow">return</span> *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>;</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;  }</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160; </div>
<div class="line"><a name="l00392"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a50f45551c10ca30a0bc7f447e70188b1">  392</a></span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a50f45551c10ca30a0bc7f447e70188b1">begin</a>() {</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;DriverPins::begin&quot;</span>);</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160; </div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;    <span class="comment">// setup function pins</span></div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac3942078ef66ed9806e69ac6cfefa381">setupPinMode</a>();</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160; </div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <span class="comment">// setup spi</span></div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    <span class="keywordtype">bool</span> result = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>) {</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;      <span class="keywordflow">if</span> (tmp.function == <a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa38f99abbc1d339c277c0669e7bc373c0">PinFunction::SD</a>) {</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#ac585b3449d271276f8b679e8ab01b2ec">sd_active</a>)</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;          result &amp;= tmp.begin();</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;          result &amp;= tmp.begin();</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;      }</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;    }</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160; </div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;    <span class="comment">// setup i2c</span></div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">i2c</a>) {</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;      result &amp;= tmp.begin();</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    }</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;    <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;  }</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160; </div>
<div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#aaf81d3fdaf258088d7692fa70cece087">  416</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#aaf81d3fdaf258088d7692fa70cece087">end</a>() {</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    <span class="comment">// setup spi</span></div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>) {</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;      tmp.end();</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    }</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    <span class="comment">// setup i2c</span></div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">i2c</a>) {</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;      <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;DriverPins::begin::I2C::end&quot;</span>);</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;      tmp.end();</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    }</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;  }</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160; </div>
<div class="line"><a name="l00429"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ac657931b192113cc4f0dfa5854dd2f84">  429</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac657931b192113cc4f0dfa5854dd2f84">setSPIActiveForSD</a>(<span class="keywordtype">bool</span> active) { <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac585b3449d271276f8b679e8ab01b2ec">sd_active</a> = active; }</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160; </div>
<div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a67b24a449a284e82cdda3ac6f49226fd">  432</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a67b24a449a284e82cdda3ac6f49226fd">isSPIActiveForSD</a>() { <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac585b3449d271276f8b679e8ab01b2ec">sd_active</a>; }</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160; </div>
<div class="line"><a name="l00435"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ace76b4671946819aff61b75c62717b08">  435</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ace76b4671946819aff61b75c62717b08">hasPins</a>() { <span class="keywordflow">return</span> !<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>.empty(); }</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160; </div>
<div class="line"><a name="l00438"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#af3260e75df8bd3857278aa7709de1aec">  438</a></span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#af3260e75df8bd3857278aa7709de1aec">isKeyPressed</a>(uint8_t key) {</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    <span class="keyword">auto</span> pin_opt = <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac646952f3e3a83b09be99589361bd8f6">getPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, key);</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    <span class="keywordflow">if</span> (!pin_opt) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    <span class="keyword">auto</span> pin = pin_opt.value();</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;    <span class="keywordtype">bool</span> value = digitalRead(pin.pin);</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;    <span class="keywordflow">return</span> pin.pin_logic == <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a> ? !value : value;</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;  }</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160; </div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160; <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00447"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a0a595946501467f993c4cc65dac0972b">  447</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_vector.html">audio_driver_local::Vector&lt;PinsI2S&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0a595946501467f993c4cc65dac0972b">i2s</a>{0};</div>
<div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">  448</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_vector.html">audio_driver_local::Vector&lt;PinsSPI&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>{0};</div>
<div class="line"><a name="l00449"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">  449</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_vector.html">audio_driver_local::Vector&lt;PinsI2C&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">i2c</a>{0};</div>
<div class="line"><a name="l00450"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">  450</a></span>&#160;  <a class="code" href="classaudio__driver__local_1_1_vector.html">audio_driver_local::Vector&lt;PinsFunction&gt;</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>{0};</div>
<div class="line"><a name="l00451"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ac585b3449d271276f8b679e8ab01b2ec">  451</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac585b3449d271276f8b679e8ab01b2ec">sd_active</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160; </div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00454"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a30473c3aa9d56241d890a43fa44cba37">  454</a></span>&#160;  T *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a30473c3aa9d56241d890a43fa44cba37">getPtr</a>(<a class="code" href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">PinFunction</a> <span class="keyword">function</span>, <a class="code" href="classaudio__driver__local_1_1_vector.html">audio_driver_local::Vector&lt;T&gt;</a> &amp;vect) {</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> : vect) {</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>.function == <span class="keyword">function</span>) <span class="keywordflow">return</span> &amp;<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>;</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    }</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;  }</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160; </div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00462"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#acb8bdb3920517d33a7556b621c2a3ee6">  462</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#acb8bdb3920517d33a7556b621c2a3ee6">set</a>(T pin, <a class="code" href="classaudio__driver__local_1_1_vector.html">audio_driver_local::Vector&lt;T&gt;</a> &amp;vect) {</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;    T *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> = getPtr&lt;T&gt;(pin.function, vect);</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> == <span class="keyword">nullptr</span>) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    *<a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a> = pin;</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;  }</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160; </div>
<div class="line"><a name="l00469"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ac3942078ef66ed9806e69ac6cfefa381">  469</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac3942078ef66ed9806e69ac6cfefa381">setupPinMode</a>() {</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;DriverPins::setupPinMode&quot;</span>);</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    <span class="comment">// setup pins</span></div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;tmp : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">pins</a>) {</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;      <span class="keywordflow">if</span> (tmp.pin != -1) {</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="classaudio__driver_1_1_driver_pins.html#a7e6698448823208004c99dd0882782b5">hasConflict</a>(tmp.pin)) {</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;          <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;pinMode for %d&quot;</span>, tmp.pin);</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;          <span class="keywordflow">switch</span> (tmp.pin_logic) {</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fad1f4343083391d4134755122ffd1bdad">PinLogic::InputActiveHigh</a>:</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;              <a class="code" href="etc_8h.html#a5fc313e20cf591fdc90c4c3867ac7717">pinMode</a>(tmp.pin, <a class="code" href="etc_8h.html#a1bb283bd7893b9855e2f23013891fc82">INPUT</a>);</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;              <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>:</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;              <a class="code" href="etc_8h.html#a5fc313e20cf591fdc90c4c3867ac7717">pinMode</a>(tmp.pin, <a class="code" href="etc_8h.html#a6295096662a20dd56186396e535fbe92">INPUT_PULLUP</a>);</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;              <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa324118a6721dd6b8a9b9f4e327df2bf5">PinLogic::Input</a>:</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;              <a class="code" href="etc_8h.html#a5fc313e20cf591fdc90c4c3867ac7717">pinMode</a>(tmp.pin, <a class="code" href="etc_8h.html#a1bb283bd7893b9855e2f23013891fc82">INPUT</a>);</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;              <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;            <span class="keywordflow">case</span> <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>:</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;              <a class="code" href="etc_8h.html#a5fc313e20cf591fdc90c4c3867ac7717">pinMode</a>(tmp.pin, <a class="code" href="etc_8h.html#a61a3c9a18380aafb6e430e79bf596557">OUTPUT</a>);</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;              <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;            <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;              <span class="comment">// do nothing</span></div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;              <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;          }</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;          <a class="code" href="_logger_8c.html#aea139a2cbe97c9a8e561a011e249a2f7">AD_LOGW</a>(<span class="stringliteral">&quot;Pin &#39;%d&#39; not set up because of conflict&quot;</span>, tmp.pin);</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;          tmp.active = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        }</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;      } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;        <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;Pin is -1&quot;</span>);</div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;      }</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;    }</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;  }</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160; </div>
<div class="line"><a name="l00503"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#a7e6698448823208004c99dd0882782b5">  503</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a7e6698448823208004c99dd0882782b5">hasConflict</a>(<span class="keywordtype">int</span> pin) {</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ae346dfc0d2db191574abf006ab44cc15">hasSPIConflict</a>(pin) || <a class="code" href="classaudio__driver_1_1_driver_pins.html#ae00a8041f5afb1b774a6d4c5168aaa7f">hasI2CConflict</a>(pin);</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;  }</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160; </div>
<div class="line"><a name="l00507"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ae346dfc0d2db191574abf006ab44cc15">  507</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ae346dfc0d2db191574abf006ab44cc15">hasSPIConflict</a>(<span class="keywordtype">int</span> pin) {</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;    <span class="keywordflow">if</span> (<a class="code" href="classaudio__driver_1_1_driver_pins.html#ac585b3449d271276f8b679e8ab01b2ec">sd_active</a>) {</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;      <span class="keyword">auto</span> sd = <a class="code" href="classaudio__driver_1_1_driver_pins.html#a8dbb11da0473a677756920d373d2068f">getSPIPins</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa38f99abbc1d339c277c0669e7bc373c0">PinFunction::SD</a>);</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;      <span class="keywordflow">if</span> (!sd) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;      <a class="code" href="structaudio__driver_1_1_pins_s_p_i.html">PinsSPI</a> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a> = sd.value();</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>.cs == pin || <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>.clk == pin || <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>.miso == pin ||</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;             <a class="code" href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">spi</a>.mosi == pin;</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;    }</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;  }</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160; </div>
<div class="line"><a name="l00518"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_pins.html#ae00a8041f5afb1b774a6d4c5168aaa7f">  518</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#ae00a8041f5afb1b774a6d4c5168aaa7f">hasI2CConflict</a>(<span class="keywordtype">int</span> pin) {</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span> &amp;i2c_entry : <a class="code" href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">i2c</a>) {</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;      <span class="keywordflow">if</span> (i2c_entry.scl == pin || i2c_entry.sda == pin) {</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;      }</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    }</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;  }</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;};</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160; </div>
<div class="line"><a name="l00533"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_touch_class.html">  533</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaudio__driver_1_1_driver_touch_class.html">DriverTouchClass</a> : <span class="keyword">public</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;<span class="preprocessor">#ifdef ESP32</span></div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html#af3260e75df8bd3857278aa7709de1aec">isKeyPressed</a>(uint8_t key)<span class="keyword"> override </span>{</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;    <span class="keyword">auto</span> pin_opt = <a class="code" href="classaudio__driver_1_1_driver_pins.html#ac646952f3e3a83b09be99589361bd8f6">getPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, key);</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    <span class="keywordflow">if</span> (!pin_opt) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;    <span class="keyword">auto</span> pin = pin_opt.value();</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;    <span class="keywordtype">int</span> value = touchRead(pin.pin);</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;    <span class="keywordtype">bool</span> result = value &lt;= <a class="code" href="classaudio__driver_1_1_driver_touch_class.html#ac6d53e051a63ad88fa43bd6e68c28930">touch_limit</a>;</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;    <span class="keywordflow">if</span> (result) {</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;      <span class="comment">// retry to confirm reading</span></div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;      value = touchRead(pin.pin);</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;      result = value &lt;= <a class="code" href="classaudio__driver_1_1_driver_touch_class.html#ac6d53e051a63ad88fa43bd6e68c28930">touch_limit</a>;</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    }</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;    <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;  }</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;  <span class="keywordtype">void</span> setTouchLimit(<span class="keywordtype">int</span> limit){</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_touch_class.html#ac6d53e051a63ad88fa43bd6e68c28930">touch_limit</a> = limit;</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;  }</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160; </div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00554"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_driver_touch_class.html#ac6d53e051a63ad88fa43bd6e68c28930">  554</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classaudio__driver_1_1_driver_touch_class.html#ac6d53e051a63ad88fa43bd6e68c28930">touch_limit</a> = <a class="code" href="_driver_pins_8h.html#afe31fa239b035c625e0677db1bff910b">TOUCH_LIMIT</a>;</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;};</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160; </div>
<div class="line"><a name="l00562"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat43_class.html">  562</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaudio__driver_1_1_pins_lyrat43_class.html">PinsLyrat43Class</a> : <span class="keyword">public</span> <a class="code" href="classaudio__driver_1_1_driver_touch_class.html">DriverTouchClass</a> {</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00564"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat43_class.html#ac30ab2e6f979a7bcabb1adf4a4ff127d">  564</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_pins_lyrat43_class.html#ac30ab2e6f979a7bcabb1adf4a4ff127d">PinsLyrat43Class</a>() {</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 23, 18);</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 0, 5, 25, 26, 35);</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160; </div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 36, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 1);</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 39, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 2);</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 33, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 3);</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 32, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 4);</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 13, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 5);</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 27, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 6);</div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafadba053ed3f4606dd1426d1b170ef106b">PinFunction::AUXIN_DETECT</a>, 12, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>);</div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa9decb49b0b8a11118da5ae919a09e766">PinFunction::HEADPHONE_DETECT</a>, 19, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>);</div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">PinFunction::PA</a>, 21, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00582"></a><span class="lineno">  582</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 22, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;  }</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;};</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160; </div>
<div class="line"><a name="l00591"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat42_class.html">  591</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaudio__driver_1_1_pins_lyrat42_class.html">PinsLyrat42Class</a> : <span class="keyword">public</span> <a class="code" href="classaudio__driver_1_1_driver_touch_class.html">DriverTouchClass</a> {</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00593"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat42_class.html#acfc0872a03d51197990856f66020e06f">  593</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_pins_lyrat42_class.html#acfc0872a03d51197990856f66020e06f">PinsLyrat42Class</a>() {</div>
<div class="line"><a name="l00594"></a><span class="lineno">  594</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00595"></a><span class="lineno">  595</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 23, 18);</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 0, 5, 25, 26, 35);</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160; </div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 36, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 1);</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 39, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 2);</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 33, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 3);</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 32, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 4);</div>
<div class="line"><a name="l00606"></a><span class="lineno">  606</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 13, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 5);</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 27, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 6);</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafadba053ed3f4606dd1426d1b170ef106b">PinFunction::AUXIN_DETECT</a>, 12, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>);</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">PinFunction::PA</a>, 21, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 22, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 1);</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 19, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 2);</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;  }</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;};</div>
<div class="line"><a name="l00614"></a><span class="lineno">  614</span>&#160; </div>
<div class="line"><a name="l00620"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat_mini_class.html">  620</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html">PinsLyratMiniClass</a> : <span class="keyword">public</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160; </div>
<div class="line"><a name="l00623"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a07d0e3d40548cb1043e8f426b2a66e9d">  623</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a07d0e3d40548cb1043e8f426b2a66e9d">PinsLyratMiniClass</a>() {</div>
<div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;    <span class="comment">// sd pins: CLK, MISO, MOSI, CS: the SD is not working, so this is commented out</span></div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;    <span class="comment">// addSPI(ESP32PinsSD);</span></div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 23, 18);</div>
<div class="line"><a name="l00628"></a><span class="lineno">  628</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 0, 5, 25, 26, 35, 0);</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafacc567fdd9cbeac32e7b50b6ffd06f0d4">PinFunction::CODEC_ADC</a>, 0, 32, 33, -1, 36, 1);</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160; </div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa9decb49b0b8a11118da5ae919a09e766">PinFunction::HEADPHONE_DETECT</a>, 19, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fad1f4343083391d4134755122ffd1bdad">PinLogic::InputActiveHigh</a>);</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">PinFunction::PA</a>, 21, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 22, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 1);</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 27, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 2);</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa0301a754913dd38062217d6b511a1696">PinFunction::MCLK_SOURCE</a>, 0, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa3cab03c00dbd11bc3569afa0748013f0">PinLogic::Inactive</a>);</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 39, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa324118a6721dd6b8a9b9f4e327df2bf5">PinLogic::Input</a>, 0);</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;  }</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160; </div>
<div class="line"><a name="l00642"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#ac7f616cfc880ce402e08853636bc3f92">  642</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#ac7f616cfc880ce402e08853636bc3f92">isKeyPressed</a>(uint8_t key)<span class="keyword"> override </span>{</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;    <span class="keywordflow">if</span> (key &gt; 5) <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;    <span class="keywordtype">int</span> value = analogRead(39);</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;    <span class="keywordtype">bool</span> result = <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#ab04715fb6473017b793601abfc04dbcf">inRange</a>(value, <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a81c5b5c06f88cec07ca29a335a59e5cb">analog_values</a>[key]);   </div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;    <a class="code" href="etc_8h.html#ab074fe18b447a055b6dbcd5f9a484db5">delay</a>(<a class="code" href="_driver_pins_8h.html#ac23b11cfe662ad3f945920ff7149d815">LYRAT_MINI_DELAY_MS</a>);</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;    <span class="keywordtype">int</span> value1 = analogRead(39);</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;    <span class="keywordtype">bool</span> result1 = <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#ab04715fb6473017b793601abfc04dbcf">inRange</a>(value, <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a81c5b5c06f88cec07ca29a335a59e5cb">analog_values</a>[key]);   </div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;    result = result &amp;&amp; result1;</div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;    <a class="code" href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a>(<span class="stringliteral">&quot;value: %d,%d for key: %d -&gt; %d&quot;</span>, value1, key, result);</div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;    <span class="keywordflow">return</span> result; </div>
<div class="line"><a name="l00652"></a><span class="lineno">  652</span>&#160;  }</div>
<div class="line"><a name="l00653"></a><span class="lineno">  653</span>&#160; </div>
<div class="line"><a name="l00654"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a5368c9f19934c4d02b289d3b910af21f">  654</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a5368c9f19934c4d02b289d3b910af21f">setRange</a>(<span class="keywordtype">int</span> value) {</div>
<div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;    <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a037e8e370380046bec287bdc96942091">range</a> = value;</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;  }</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160; </div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;  <span class="comment">// analog values for rec, mute, play, set, vol-, vol+</span></div>
<div class="line"><a name="l00660"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a81c5b5c06f88cec07ca29a335a59e5cb">  660</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a81c5b5c06f88cec07ca29a335a59e5cb">analog_values</a>[6] {2802, 2270, 1754, 1284, 827, 304};</div>
<div class="line"><a name="l00661"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a037e8e370380046bec287bdc96942091">  661</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a037e8e370380046bec287bdc96942091">range</a> = <a class="code" href="_driver_pins_8h.html#a176edb2f120294a1bb3c7d73d8a0bb62">LYRAT_MINI_RANGE</a>;</div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160; </div>
<div class="line"><a name="l00663"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#ab04715fb6473017b793601abfc04dbcf">  663</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#ab04715fb6473017b793601abfc04dbcf">inRange</a>(<span class="keywordtype">int</span> in, <span class="keywordtype">int</span> toBe){</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;    <span class="keywordflow">return</span> in &gt;= (toBe-<a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a037e8e370380046bec287bdc96942091">range</a>)  &amp;&amp;  in &lt;= (toBe+<a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a037e8e370380046bec287bdc96942091">range</a>); </div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;  }</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160; </div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;};</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160; </div>
<div class="line"><a name="l00674"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_audio_kit_es8388v1_class.html">  674</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaudio__driver_1_1_pins_audio_kit_es8388v1_class.html">PinsAudioKitEs8388v1Class</a> : <span class="keyword">public</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00676"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_audio_kit_es8388v1_class.html#ad2457c35beb9c8bc89440e0fb8ce98b2">  676</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_pins_audio_kit_es8388v1_class.html#ad2457c35beb9c8bc89440e0fb8ce98b2">PinsAudioKitEs8388v1Class</a>() {</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 32, 33);</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 0, 27, 25, 26, 35);</div>
<div class="line"><a name="l00683"></a><span class="lineno">  683</span>&#160; </div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 36, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 1);</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 13, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 2);</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 19, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 3);</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 23, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 4);</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 18, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 5);</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 5, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 6);</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafadba053ed3f4606dd1426d1b170ef106b">PinFunction::AUXIN_DETECT</a>, 12, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>);</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa9decb49b0b8a11118da5ae919a09e766">PinFunction::HEADPHONE_DETECT</a>, 39, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>);</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">PinFunction::PA</a>, 21, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 22, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;  }</div>
<div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;};</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160; </div>
<div class="line"><a name="l00703"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_audio_kit_es8388v2_class.html">  703</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaudio__driver_1_1_pins_audio_kit_es8388v2_class.html">PinsAudioKitEs8388v2Class</a> : <span class="keyword">public</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00705"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_audio_kit_es8388v2_class.html#ae3b3d5b5559c7f0b13071e5c885c6499">  705</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_pins_audio_kit_es8388v2_class.html#ae3b3d5b5559c7f0b13071e5c885c6499">PinsAudioKitEs8388v2Class</a>() {</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00709"></a><span class="lineno">  709</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 23, 18);</div>
<div class="line"><a name="l00710"></a><span class="lineno">  710</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 0, 5, 25, 26, 35);</div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160; </div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 36, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 1);</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 13, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 2);</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 19, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 3);</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 23, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 4);</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 18, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 5);</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 5, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 6);</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafadba053ed3f4606dd1426d1b170ef106b">PinFunction::AUXIN_DETECT</a>, 12, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>);</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa9decb49b0b8a11118da5ae919a09e766">PinFunction::HEADPHONE_DETECT</a>, 39, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>);</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">PinFunction::PA</a>, 21, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 22, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;  }</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;};</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160; </div>
<div class="line"><a name="l00732"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_audio_kit_a_c101_class.html">  732</a></span>&#160;<span class="keyword">class </span><a class="code" href="classaudio__driver_1_1_pins_audio_kit_a_c101_class.html">PinsAudioKitAC101Class</a> : <span class="keyword">public</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a> {</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00734"></a><span class="lineno"><a class="line" href="classaudio__driver_1_1_pins_audio_kit_a_c101_class.html#af8047f806dd07e4e7fb9af3b1046445c">  734</a></span>&#160;  <a class="code" href="classaudio__driver_1_1_pins_audio_kit_a_c101_class.html#af8047f806dd07e4e7fb9af3b1046445c">PinsAudioKitAC101Class</a>() {</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;    <span class="comment">// sd pins</span></div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">addSPI</a>(<a class="code" href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">ESP32PinsSD</a>);</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">addI2C</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 32, 33);</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">addI2S</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, 0, 27, 26, 25, 35);</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160; </div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 36, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 1);</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 13, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 2);</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 19, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 3);</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 23, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 4);</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 18, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 5);</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, 5, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>, 6);</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 22, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 0);</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, 19, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 1);</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa9decb49b0b8a11118da5ae919a09e766">PinFunction::HEADPHONE_DETECT</a>, 5, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">PinLogic::InputActiveLow</a>);</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;    <a class="code" href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">addPin</a>(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">PinFunction::PA</a>, 21, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;  }</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;};</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160; </div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;<span class="preprocessor">#if defined(ARDUINO_GENERIC_F411VETX)</span></div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160; </div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;<span class="keyword">class </span>PinsSTM32F411DiscoClass : <span class="keyword">public</span> DriverPins {</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;  PinsSTM32F411DiscoClass() {</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;    <span class="comment">// add i2c codec pins: scl, sda, port, frequency</span></div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;    addI2C(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, PB6, PB9);</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;    <span class="comment">// add i2s pins: mclk, bck, ws,data_out, data_in ,(port)</span></div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;    addI2S(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">PinFunction::CODEC</a>, PC7, PC10, PA4, PC3, PC12);</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160; </div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;    <span class="comment">// add other pins</span></div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;    addPin(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">PinFunction::KEY</a>, PA0, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);      <span class="comment">// user button</span></div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;    addPin(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, PD12, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 0);  <span class="comment">// green</span></div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;    addPin(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, PD5, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 1);   <span class="comment">// red</span></div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;    addPin(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, PD13, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 2);  <span class="comment">// orange</span></div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;    addPin(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, PD14, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 3);  <span class="comment">// red</span></div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;    addPin(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">PinFunction::LED</a>, PD15, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>, 4);  <span class="comment">// blue</span></div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;    addPin(<a class="code" href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">PinFunction::PA</a>, PD4, <a class="code" href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">PinLogic::Output</a>);  <span class="comment">// reset pin (active high)</span></div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;    <span class="comment">// addPin(PinFunction::CODEC_ADC, PC3, PinLogic::Input); // Microphone</span></div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;  }</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;};</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160; </div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;<span class="keyword">static</span> PinsSTM32F411DiscoClass PinsSTM32F411Disco;</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160; </div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160; </div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;<span class="comment">// -- Pins</span></div>
<div class="line"><a name="l00792"></a><span class="lineno"><a class="line" href="group__audio__driver.html#gae6031df2ec66c645dd42ae315b79e156">  792</a></span>&#160;<span class="comment"></span><span class="keyword">static</span> <a class="code" href="classaudio__driver_1_1_driver_pins.html">DriverPins</a> <a class="code" href="group__audio__driver.html#gae6031df2ec66c645dd42ae315b79e156">NoPins</a>;</div>
<div class="line"><a name="l00794"></a><span class="lineno"><a class="line" href="group__audio__driver.html#ga61f7164942e4687d3136447ecc1fb78e">  794</a></span>&#160;<span class="keyword">static</span> <a class="code" href="classaudio__driver_1_1_pins_lyrat43_class.html">PinsLyrat43Class</a> <a class="code" href="group__audio__driver.html#ga61f7164942e4687d3136447ecc1fb78e">PinsLyrat43</a>;</div>
<div class="line"><a name="l00796"></a><span class="lineno"><a class="line" href="group__audio__driver.html#ga4c69c022bab026eb5d85877b0800771d">  796</a></span>&#160;<span class="keyword">static</span> <a class="code" href="classaudio__driver_1_1_pins_lyrat42_class.html">PinsLyrat42Class</a> <a class="code" href="group__audio__driver.html#ga4c69c022bab026eb5d85877b0800771d">PinsLyrat42</a>;</div>
<div class="line"><a name="l00798"></a><span class="lineno"><a class="line" href="group__audio__driver.html#ga0f4a0dbd3aeea6d499d87a62293e012e">  798</a></span>&#160;<span class="keyword">static</span> <a class="code" href="classaudio__driver_1_1_pins_lyrat_mini_class.html">PinsLyratMiniClass</a> <a class="code" href="group__audio__driver.html#ga0f4a0dbd3aeea6d499d87a62293e012e">PinsLyratMini</a>;</div>
<div class="line"><a name="l00800"></a><span class="lineno"><a class="line" href="group__audio__driver.html#gaac2b21f064b1a332b2ae9b35fa46484e">  800</a></span>&#160;<span class="keyword">static</span> <a class="code" href="classaudio__driver_1_1_pins_audio_kit_es8388v1_class.html">PinsAudioKitEs8388v1Class</a> <a class="code" href="group__audio__driver.html#gaac2b21f064b1a332b2ae9b35fa46484e">PinsAudioKitEs8388v1</a>;</div>
<div class="line"><a name="l00802"></a><span class="lineno"><a class="line" href="group__audio__driver.html#gaec73d289b40131bb320b17356793430e">  802</a></span>&#160;<span class="keyword">static</span> <a class="code" href="classaudio__driver_1_1_pins_audio_kit_es8388v2_class.html">PinsAudioKitEs8388v2Class</a> <a class="code" href="group__audio__driver.html#gaec73d289b40131bb320b17356793430e">PinsAudioKitEs8388v2</a>;</div>
<div class="line"><a name="l00804"></a><span class="lineno"><a class="line" href="group__audio__driver.html#ga4de967e315821b064d50a78d01877d67">  804</a></span>&#160;<span class="keyword">static</span> <a class="code" href="classaudio__driver_1_1_pins_audio_kit_a_c101_class.html">PinsAudioKitAC101Class</a> <a class="code" href="group__audio__driver.html#ga4de967e315821b064d50a78d01877d67">PinsAudioKitAC101</a>;</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160; </div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;}  <span class="comment">// namespace audio_driver</span></div>
<div class="ttc" id="a_driver_common_8h_html"><div class="ttname"><a href="_driver_common_8h.html">DriverCommon.h</a></div></div>
<div class="ttc" id="a_driver_pins_8h_html_a176edb2f120294a1bb3c7d73d8a0bb62"><div class="ttname"><a href="_driver_pins_8h.html#a176edb2f120294a1bb3c7d73d8a0bb62">LYRAT_MINI_RANGE</a></div><div class="ttdeci">#define LYRAT_MINI_RANGE</div><div class="ttdef"><b>Definition:</b> DriverPins.h:14</div></div>
<div class="ttc" id="a_driver_pins_8h_html_ac23b11cfe662ad3f945920ff7149d815"><div class="ttname"><a href="_driver_pins_8h.html#ac23b11cfe662ad3f945920ff7149d815">LYRAT_MINI_DELAY_MS</a></div><div class="ttdeci">#define LYRAT_MINI_DELAY_MS</div><div class="ttdef"><b>Definition:</b> DriverPins.h:18</div></div>
<div class="ttc" id="a_driver_pins_8h_html_afe31fa239b035c625e0677db1bff910b"><div class="ttname"><a href="_driver_pins_8h.html#afe31fa239b035c625e0677db1bff910b">TOUCH_LIMIT</a></div><div class="ttdeci">#define TOUCH_LIMIT</div><div class="ttdef"><b>Definition:</b> DriverPins.h:10</div></div>
<div class="ttc" id="a_logger_8c_html_a9ad68b9be1a9751690256858a3b16036"><div class="ttname"><a href="_logger_8c.html#a9ad68b9be1a9751690256858a3b16036">AD_LOGD</a></div><div class="ttdeci">void AD_LOGD(const char *fmr,...)</div><div class="ttdef"><b>Definition:</b> Logger.c:10</div></div>
<div class="ttc" id="a_logger_8c_html_ada3b7c7d836d0f21f2bd2f945c997294"><div class="ttname"><a href="_logger_8c.html#ada3b7c7d836d0f21f2bd2f945c997294">AD_LOGI</a></div><div class="ttdeci">void AD_LOGI(const char *fmr,...)</div><div class="ttdef"><b>Definition:</b> Logger.c:22</div></div>
<div class="ttc" id="a_logger_8c_html_aea139a2cbe97c9a8e561a011e249a2f7"><div class="ttname"><a href="_logger_8c.html#aea139a2cbe97c9a8e561a011e249a2f7">AD_LOGW</a></div><div class="ttdeci">void AD_LOGW(const char *fmr,...)</div><div class="ttdef"><b>Definition:</b> Logger.c:34</div></div>
<div class="ttc" id="a_optional_8h_html"><div class="ttname"><a href="_optional_8h.html">Optional.h</a></div></div>
<div class="ttc" id="a_vector_8h_html"><div class="ttname"><a href="_vector_8h.html">Vector.h</a></div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html">audio_driver::DriverPins</a></div><div class="ttdoc">All pins for i2s, spi, i2c and other pins.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:273</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a02307a24baa775b8367cb9141ac71147"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a02307a24baa775b8367cb9141ac71147">audio_driver::DriverPins::setI2C</a></div><div class="ttdeci">bool setI2C(PinsI2C pin)</div><div class="ttdoc">Updates the I2C pin information using the function as key.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:328</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a052842a7d29e1b90185c1d57fc16f5d2"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a052842a7d29e1b90185c1d57fc16f5d2">audio_driver::DriverPins::getI2CPins</a></div><div class="ttdeci">audio_driver_local::Optional&lt; PinsI2C &gt; getI2CPins(PinFunction function)</div><div class="ttdoc">Finds the I2C pin info with the help of the function.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:363</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a0581f944e4050a778777f99d02af5b26"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a0581f944e4050a778777f99d02af5b26">audio_driver::DriverPins::addPin</a></div><div class="ttdeci">bool addPin(PinsFunction pin)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:330</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a0a595946501467f993c4cc65dac0972b"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a0a595946501467f993c4cc65dac0972b">audio_driver::DriverPins::i2s</a></div><div class="ttdeci">audio_driver_local::Vector&lt; PinsI2S &gt; i2s</div><div class="ttdef"><b>Definition:</b> DriverPins.h:447</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a1bec8cca54681dc1e21f9a5281642dc7"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a1bec8cca54681dc1e21f9a5281642dc7">audio_driver::DriverPins::getPinID</a></div><div class="ttdeci">GpioPin getPinID(PinFunction function, int pos=0)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:356</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a1ecbe28985896b2b16d794dde949469f"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a1ecbe28985896b2b16d794dde949469f">audio_driver::DriverPins::addI2S</a></div><div class="ttdeci">bool addI2S(PinsI2S pin)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:279</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a1f1e09006b9f9f5c11b5cc30c3073977"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a1f1e09006b9f9f5c11b5cc30c3073977">audio_driver::DriverPins::pins</a></div><div class="ttdeci">audio_driver_local::Vector&lt; PinsFunction &gt; pins</div><div class="ttdef"><b>Definition:</b> DriverPins.h:450</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a2c7d3ef52527f46862f1bf7b349a6ef4"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a2c7d3ef52527f46862f1bf7b349a6ef4">audio_driver::DriverPins::operator=</a></div><div class="ttdeci">DriverPins &amp; operator=(const DriverPins &amp;)=delete</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a30473c3aa9d56241d890a43fa44cba37"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a30473c3aa9d56241d890a43fa44cba37">audio_driver::DriverPins::getPtr</a></div><div class="ttdeci">T * getPtr(PinFunction function, audio_driver_local::Vector&lt; T &gt; &amp;vect)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:454</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a31bde529a2132b702b7a0e492adf5d61"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a31bde529a2132b702b7a0e492adf5d61">audio_driver::DriverPins::getI2SPins</a></div><div class="ttdeci">audio_driver_local::Optional&lt; PinsI2S &gt; getI2SPins(PinFunction function=PinFunction::CODEC)</div><div class="ttdoc">Finds the I2S pin info with the help of the function.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:385</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a3493e552b008d1593594675135f88400"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a3493e552b008d1593594675135f88400">audio_driver::DriverPins::addI2S</a></div><div class="ttdeci">bool addI2S(PinFunction function, GpioPin mclk, GpioPin bck, GpioPin ws, GpioPin data_out, GpioPin data_in=-1, int port=0)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:285</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a3fb5f991130c2a10a0cfecb026a70775"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a3fb5f991130c2a10a0cfecb026a70775">audio_driver::DriverPins::i2c</a></div><div class="ttdeci">audio_driver_local::Vector&lt; PinsI2C &gt; i2c</div><div class="ttdef"><b>Definition:</b> DriverPins.h:449</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a50f45551c10ca30a0bc7f447e70188b1"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a50f45551c10ca30a0bc7f447e70188b1">audio_driver::DriverPins::begin</a></div><div class="ttdeci">virtual bool begin()</div><div class="ttdoc">Sets up all pins e.g. by calling pinMode()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:392</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a6069cc9ea7b789c160ff524253c65c73"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a6069cc9ea7b789c160ff524253c65c73">audio_driver::DriverPins::addPin</a></div><div class="ttdeci">bool addPin(PinFunction function, GpioPin pinNo, PinLogic logic, int index=0)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:335</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a60e96ddd89c7a917acb118323522d197"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a60e96ddd89c7a917acb118323522d197">audio_driver::DriverPins::getPin</a></div><div class="ttdeci">audio_driver_local::Optional&lt; PinsFunction &gt; getPin(GpioPin pinId)</div><div class="ttdoc">Get pin information by pin ID.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:349</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a62a8b892dc4322ea673b7ef456e0bc42"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a62a8b892dc4322ea673b7ef456e0bc42">audio_driver::DriverPins::addI2C</a></div><div class="ttdeci">bool addI2C(PinFunction function, GpioPin scl, GpioPin sda, int port=-1, uint32_t frequency=100000, TwoWire &amp;wire=Wire, bool active=true)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:315</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a67b24a449a284e82cdda3ac6f49226fd"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a67b24a449a284e82cdda3ac6f49226fd">audio_driver::DriverPins::isSPIActiveForSD</a></div><div class="ttdeci">bool isSPIActiveForSD()</div><div class="ttdoc">Check if SPI for SD should be started automatically.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:432</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a7e6698448823208004c99dd0882782b5"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a7e6698448823208004c99dd0882782b5">audio_driver::DriverPins::hasConflict</a></div><div class="ttdeci">bool hasConflict(int pin)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:503</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a820fd872690ad0c64532e24db3de0945"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a820fd872690ad0c64532e24db3de0945">audio_driver::DriverPins::addSPI</a></div><div class="ttdeci">bool addSPI(PinsSPI pin)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:294</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a8dbb11da0473a677756920d373d2068f"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a8dbb11da0473a677756920d373d2068f">audio_driver::DriverPins::getSPIPins</a></div><div class="ttdeci">audio_driver_local::Optional&lt; PinsSPI &gt; getSPIPins(PinFunction function)</div><div class="ttdoc">Finds the SPI pin info with the help of the function.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:370</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a971270d5c6ea5cfdd16ba30a4aee05d1"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a971270d5c6ea5cfdd16ba30a4aee05d1">audio_driver::DriverPins::addI2C</a></div><div class="ttdeci">bool addI2C(PinsI2C pin)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:309</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_a99492c2ad28a9f4670873619573c7faf"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#a99492c2ad28a9f4670873619573c7faf">audio_driver::DriverPins::spi</a></div><div class="ttdeci">audio_driver_local::Vector&lt; PinsSPI &gt; spi</div><div class="ttdef"><b>Definition:</b> DriverPins.h:448</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_aaf81d3fdaf258088d7692fa70cece087"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#aaf81d3fdaf258088d7692fa70cece087">audio_driver::DriverPins::end</a></div><div class="ttdeci">void end()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:416</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ab33faa4563eb42152aad851515ab71c6"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ab33faa4563eb42152aad851515ab71c6">audio_driver::DriverPins::setSPI</a></div><div class="ttdeci">bool setSPI(PinsSPI pin)</div><div class="ttdoc">Updates the SPI pin information using the function as key.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:307</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ab6010b03b335e0362f5aca37aab76f82"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ab6010b03b335e0362f5aca37aab76f82">audio_driver::DriverPins::DriverPins</a></div><div class="ttdeci">DriverPins()=default</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ac3942078ef66ed9806e69ac6cfefa381"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ac3942078ef66ed9806e69ac6cfefa381">audio_driver::DriverPins::setupPinMode</a></div><div class="ttdeci">void setupPinMode()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:469</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ac585b3449d271276f8b679e8ab01b2ec"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ac585b3449d271276f8b679e8ab01b2ec">audio_driver::DriverPins::sd_active</a></div><div class="ttdeci">bool sd_active</div><div class="ttdef"><b>Definition:</b> DriverPins.h:451</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ac646952f3e3a83b09be99589361bd8f6"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ac646952f3e3a83b09be99589361bd8f6">audio_driver::DriverPins::getPin</a></div><div class="ttdeci">audio_driver_local::Optional&lt; PinsFunction &gt; getPin(PinFunction function, int pos=0)</div><div class="ttdoc">Get pin information by function.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:341</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ac657931b192113cc4f0dfa5854dd2f84"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ac657931b192113cc4f0dfa5854dd2f84">audio_driver::DriverPins::setSPIActiveForSD</a></div><div class="ttdeci">void setSPIActiveForSD(bool active)</div><div class="ttdoc">Defines if SPI for SD should be started (by default true)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:429</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_acb8bdb3920517d33a7556b621c2a3ee6"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#acb8bdb3920517d33a7556b621c2a3ee6">audio_driver::DriverPins::set</a></div><div class="ttdeci">bool set(T pin, audio_driver_local::Vector&lt; T &gt; &amp;vect)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:462</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_acc5de9c570f490b7fd2ba8f1ec9e9199"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#acc5de9c570f490b7fd2ba8f1ec9e9199">audio_driver::DriverPins::addSPI</a></div><div class="ttdeci">bool addSPI(PinFunction function, GpioPin clk, GpioPin miso, GpioPin mosi, GpioPin cs, SPIClass &amp;spi=SPI)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:300</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ace76b4671946819aff61b75c62717b08"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ace76b4671946819aff61b75c62717b08">audio_driver::DriverPins::hasPins</a></div><div class="ttdeci">bool hasPins()</div><div class="ttdoc">Returns true if some function pins have been defined.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:435</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_aceacff71fe3519254eb9c4afb4e4e959"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#aceacff71fe3519254eb9c4afb4e4e959">audio_driver::DriverPins::getI2SPins</a></div><div class="ttdeci">audio_driver_local::Optional&lt; PinsI2S &gt; getI2SPins(int port)</div><div class="ttdoc">Finds the I2S pin info with the help of the port.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:377</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ad10ad3df25bb2be692f416ecc739540e"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ad10ad3df25bb2be692f416ecc739540e">audio_driver::DriverPins::DriverPins</a></div><div class="ttdeci">DriverPins(const DriverPins &amp;)=delete</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_adeb8e9ed06517c8f88db264c95a3bd50"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#adeb8e9ed06517c8f88db264c95a3bd50">audio_driver::DriverPins::setI2S</a></div><div class="ttdeci">bool setI2S(PinsI2S pin)</div><div class="ttdoc">Updates the I2S pin information using the function as key.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:292</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ae00a8041f5afb1b774a6d4c5168aaa7f"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ae00a8041f5afb1b774a6d4c5168aaa7f">audio_driver::DriverPins::hasI2CConflict</a></div><div class="ttdeci">bool hasI2CConflict(int pin)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:518</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_ae346dfc0d2db191574abf006ab44cc15"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#ae346dfc0d2db191574abf006ab44cc15">audio_driver::DriverPins::hasSPIConflict</a></div><div class="ttdeci">bool hasSPIConflict(int pin)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:507</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_af1a5145719e020a308584fcfa0ed2e83"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#af1a5145719e020a308584fcfa0ed2e83">audio_driver::DriverPins::addI2C</a></div><div class="ttdeci">bool addI2C(PinFunction function, TwoWire &amp;wire, bool setActive=false)</div><div class="ttdoc">Just define your initialzed wire object.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:322</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_pins_html_af3260e75df8bd3857278aa7709de1aec"><div class="ttname"><a href="classaudio__driver_1_1_driver_pins.html#af3260e75df8bd3857278aa7709de1aec">audio_driver::DriverPins::isKeyPressed</a></div><div class="ttdeci">virtual bool isKeyPressed(uint8_t key)</div><div class="ttdoc">returns true if pressed</div><div class="ttdef"><b>Definition:</b> DriverPins.h:438</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_touch_class_html"><div class="ttname"><a href="classaudio__driver_1_1_driver_touch_class.html">audio_driver::DriverTouchClass</a></div><div class="ttdoc">Support for Touch.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:533</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_driver_touch_class_html_ac6d53e051a63ad88fa43bd6e68c28930"><div class="ttname"><a href="classaudio__driver_1_1_driver_touch_class.html#ac6d53e051a63ad88fa43bd6e68c28930">audio_driver::DriverTouchClass::touch_limit</a></div><div class="ttdeci">int touch_limit</div><div class="ttdef"><b>Definition:</b> DriverPins.h:554</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_audio_kit_a_c101_class_html"><div class="ttname"><a href="classaudio__driver_1_1_pins_audio_kit_a_c101_class.html">audio_driver::PinsAudioKitAC101Class</a></div><div class="ttdoc">Pins for alt AC101 AudioDriver - use the PinsAudioKitAC101 object!</div><div class="ttdef"><b>Definition:</b> DriverPins.h:732</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_audio_kit_a_c101_class_html_af8047f806dd07e4e7fb9af3b1046445c"><div class="ttname"><a href="classaudio__driver_1_1_pins_audio_kit_a_c101_class.html#af8047f806dd07e4e7fb9af3b1046445c">audio_driver::PinsAudioKitAC101Class::PinsAudioKitAC101Class</a></div><div class="ttdeci">PinsAudioKitAC101Class()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:734</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_audio_kit_es8388v1_class_html"><div class="ttname"><a href="classaudio__driver_1_1_pins_audio_kit_es8388v1_class.html">audio_driver::PinsAudioKitEs8388v1Class</a></div><div class="ttdoc">Pins for Es8388 AudioDriver - use the PinsAudioKitEs8388v1 object!</div><div class="ttdef"><b>Definition:</b> DriverPins.h:674</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_audio_kit_es8388v1_class_html_ad2457c35beb9c8bc89440e0fb8ce98b2"><div class="ttname"><a href="classaudio__driver_1_1_pins_audio_kit_es8388v1_class.html#ad2457c35beb9c8bc89440e0fb8ce98b2">audio_driver::PinsAudioKitEs8388v1Class::PinsAudioKitEs8388v1Class</a></div><div class="ttdeci">PinsAudioKitEs8388v1Class()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:676</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_audio_kit_es8388v2_class_html"><div class="ttname"><a href="classaudio__driver_1_1_pins_audio_kit_es8388v2_class.html">audio_driver::PinsAudioKitEs8388v2Class</a></div><div class="ttdoc">Pins for alt Es8388 AudioDriver - use the PinsAudioKitEs8388v2 object!</div><div class="ttdef"><b>Definition:</b> DriverPins.h:703</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_audio_kit_es8388v2_class_html_ae3b3d5b5559c7f0b13071e5c885c6499"><div class="ttname"><a href="classaudio__driver_1_1_pins_audio_kit_es8388v2_class.html#ae3b3d5b5559c7f0b13071e5c885c6499">audio_driver::PinsAudioKitEs8388v2Class::PinsAudioKitEs8388v2Class</a></div><div class="ttdeci">PinsAudioKitEs8388v2Class()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:705</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat42_class_html"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat42_class.html">audio_driver::PinsLyrat42Class</a></div><div class="ttdoc">Pins for Lyrat 4.2 - use the PinsLyrat42 object!</div><div class="ttdef"><b>Definition:</b> DriverPins.h:591</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat42_class_html_acfc0872a03d51197990856f66020e06f"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat42_class.html#acfc0872a03d51197990856f66020e06f">audio_driver::PinsLyrat42Class::PinsLyrat42Class</a></div><div class="ttdeci">PinsLyrat42Class()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:593</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat43_class_html"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat43_class.html">audio_driver::PinsLyrat43Class</a></div><div class="ttdoc">Pins for Lyrat 4.3 - use the PinsLyrat43 object!</div><div class="ttdef"><b>Definition:</b> DriverPins.h:562</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat43_class_html_ac30ab2e6f979a7bcabb1adf4a4ff127d"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat43_class.html#ac30ab2e6f979a7bcabb1adf4a4ff127d">audio_driver::PinsLyrat43Class::PinsLyrat43Class</a></div><div class="ttdeci">PinsLyrat43Class()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:564</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat_mini_class_html"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat_mini_class.html">audio_driver::PinsLyratMiniClass</a></div><div class="ttdoc">Pins for Lyrat Mini - use the PinsLyratMini object!</div><div class="ttdef"><b>Definition:</b> DriverPins.h:620</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat_mini_class_html_a037e8e370380046bec287bdc96942091"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a037e8e370380046bec287bdc96942091">audio_driver::PinsLyratMiniClass::range</a></div><div class="ttdeci">int range</div><div class="ttdef"><b>Definition:</b> DriverPins.h:661</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat_mini_class_html_a07d0e3d40548cb1043e8f426b2a66e9d"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a07d0e3d40548cb1043e8f426b2a66e9d">audio_driver::PinsLyratMiniClass::PinsLyratMiniClass</a></div><div class="ttdeci">PinsLyratMiniClass()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:623</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat_mini_class_html_a5368c9f19934c4d02b289d3b910af21f"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a5368c9f19934c4d02b289d3b910af21f">audio_driver::PinsLyratMiniClass::setRange</a></div><div class="ttdeci">void setRange(int value)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:654</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat_mini_class_html_a81c5b5c06f88cec07ca29a335a59e5cb"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat_mini_class.html#a81c5b5c06f88cec07ca29a335a59e5cb">audio_driver::PinsLyratMiniClass::analog_values</a></div><div class="ttdeci">int analog_values[6]</div><div class="ttdef"><b>Definition:</b> DriverPins.h:660</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat_mini_class_html_ab04715fb6473017b793601abfc04dbcf"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat_mini_class.html#ab04715fb6473017b793601abfc04dbcf">audio_driver::PinsLyratMiniClass::inRange</a></div><div class="ttdeci">bool inRange(int in, int toBe)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:663</div></div>
<div class="ttc" id="aclassaudio__driver_1_1_pins_lyrat_mini_class_html_ac7f616cfc880ce402e08853636bc3f92"><div class="ttname"><a href="classaudio__driver_1_1_pins_lyrat_mini_class.html#ac7f616cfc880ce402e08853636bc3f92">audio_driver::PinsLyratMiniClass::isKeyPressed</a></div><div class="ttdeci">bool isKeyPressed(uint8_t key) override</div><div class="ttdef"><b>Definition:</b> DriverPins.h:642</div></div>
<div class="ttc" id="aclassaudio__driver__local_1_1_optional_html"><div class="ttname"><a href="classaudio__driver__local_1_1_optional.html">audio_driver_local::Optional</a></div><div class="ttdoc">A simple optonal implementation.</div><div class="ttdef"><b>Definition:</b> Optional.h:10</div></div>
<div class="ttc" id="aclassaudio__driver__local_1_1_vector_html"><div class="ttname"><a href="classaudio__driver__local_1_1_vector.html">audio_driver_local::Vector</a></div><div class="ttdoc">Vector implementation which provides the most important methods as defined by std::vector....</div><div class="ttdef"><b>Definition:</b> Vector.h:18</div></div>
<div class="ttc" id="aetc_8h_html_a1bb283bd7893b9855e2f23013891fc82"><div class="ttname"><a href="etc_8h.html#a1bb283bd7893b9855e2f23013891fc82">INPUT</a></div><div class="ttdeci">#define INPUT</div><div class="ttdef"><b>Definition:</b> etc.h:13</div></div>
<div class="ttc" id="aetc_8h_html_a5bb885982ff66a2e0a0a45a8ee9c35e2"><div class="ttname"><a href="etc_8h.html#a5bb885982ff66a2e0a0a45a8ee9c35e2">HIGH</a></div><div class="ttdeci">#define HIGH</div><div class="ttdef"><b>Definition:</b> etc.h:7</div></div>
<div class="ttc" id="aetc_8h_html_a5fc313e20cf591fdc90c4c3867ac7717"><div class="ttname"><a href="etc_8h.html#a5fc313e20cf591fdc90c4c3867ac7717">pinMode</a></div><div class="ttdeci">void pinMode(int, int)</div></div>
<div class="ttc" id="aetc_8h_html_a61a3c9a18380aafb6e430e79bf596557"><div class="ttname"><a href="etc_8h.html#a61a3c9a18380aafb6e430e79bf596557">OUTPUT</a></div><div class="ttdeci">#define OUTPUT</div><div class="ttdef"><b>Definition:</b> etc.h:16</div></div>
<div class="ttc" id="aetc_8h_html_a6295096662a20dd56186396e535fbe92"><div class="ttname"><a href="etc_8h.html#a6295096662a20dd56186396e535fbe92">INPUT_PULLUP</a></div><div class="ttdeci">#define INPUT_PULLUP</div><div class="ttdef"><b>Definition:</b> etc.h:19</div></div>
<div class="ttc" id="aetc_8h_html_ab074fe18b447a055b6dbcd5f9a484db5"><div class="ttname"><a href="etc_8h.html#ab074fe18b447a055b6dbcd5f9a484db5">delay</a></div><div class="ttdeci">void delay(unsigned long)</div></div>
<div class="ttc" id="aetc_8h_html_afb6322a0aff6851765ab32bfaa5080d6"><div class="ttname"><a href="etc_8h.html#afb6322a0aff6851765ab32bfaa5080d6">digitalWrite</a></div><div class="ttdeci">void digitalWrite(int, int)</div></div>
<div class="ttc" id="agroup__audio__driver_html_ga0e38a8cbaae36dea9c9053a4ee8f9e18"><div class="ttname"><a href="group__audio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18">audio_driver::AudioDriverKey</a></div><div class="ttdeci">AudioDriverKey</div><div class="ttdoc">Key names.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:71</div></div>
<div class="ttc" id="agroup__audio__driver_html_ga0f4a0dbd3aeea6d499d87a62293e012e"><div class="ttname"><a href="group__audio__driver.html#ga0f4a0dbd3aeea6d499d87a62293e012e">audio_driver::PinsLyratMini</a></div><div class="ttdeci">static PinsLyratMiniClass PinsLyratMini</div><div class="ttdef"><b>Definition:</b> DriverPins.h:798</div></div>
<div class="ttc" id="agroup__audio__driver_html_ga4c69c022bab026eb5d85877b0800771d"><div class="ttname"><a href="group__audio__driver.html#ga4c69c022bab026eb5d85877b0800771d">audio_driver::PinsLyrat42</a></div><div class="ttdeci">static PinsLyrat42Class PinsLyrat42</div><div class="ttdef"><b>Definition:</b> DriverPins.h:796</div></div>
<div class="ttc" id="agroup__audio__driver_html_ga4de967e315821b064d50a78d01877d67"><div class="ttname"><a href="group__audio__driver.html#ga4de967e315821b064d50a78d01877d67">audio_driver::PinsAudioKitAC101</a></div><div class="ttdeci">static PinsAudioKitAC101Class PinsAudioKitAC101</div><div class="ttdef"><b>Definition:</b> DriverPins.h:804</div></div>
<div class="ttc" id="agroup__audio__driver_html_ga61f7164942e4687d3136447ecc1fb78e"><div class="ttname"><a href="group__audio__driver.html#ga61f7164942e4687d3136447ecc1fb78e">audio_driver::PinsLyrat43</a></div><div class="ttdeci">static PinsLyrat43Class PinsLyrat43</div><div class="ttdef"><b>Definition:</b> DriverPins.h:794</div></div>
<div class="ttc" id="agroup__audio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aaf"><div class="ttname"><a href="group__audio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aaf">audio_driver::PinFunction</a></div><div class="ttdeci">PinFunction</div><div class="ttdoc">Pin Functions.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:48</div></div>
<div class="ttc" id="agroup__audio__driver_html_gaac2b21f064b1a332b2ae9b35fa46484e"><div class="ttname"><a href="group__audio__driver.html#gaac2b21f064b1a332b2ae9b35fa46484e">audio_driver::PinsAudioKitEs8388v1</a></div><div class="ttdeci">static PinsAudioKitEs8388v1Class PinsAudioKitEs8388v1</div><div class="ttdef"><b>Definition:</b> DriverPins.h:800</div></div>
<div class="ttc" id="agroup__audio__driver_html_gae6031df2ec66c645dd42ae315b79e156"><div class="ttname"><a href="group__audio__driver.html#gae6031df2ec66c645dd42ae315b79e156">audio_driver::NoPins</a></div><div class="ttdeci">static DriverPins NoPins</div><div class="ttdoc">Pins need to be set up in the sketch.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:792</div></div>
<div class="ttc" id="agroup__audio__driver_html_gaec73d289b40131bb320b17356793430e"><div class="ttname"><a href="group__audio__driver.html#gaec73d289b40131bb320b17356793430e">audio_driver::PinsAudioKitEs8388v2</a></div><div class="ttdeci">static PinsAudioKitEs8388v2Class PinsAudioKitEs8388v2</div><div class="ttdef"><b>Definition:</b> DriverPins.h:802</div></div>
<div class="ttc" id="agroup__enumerations_html_ga541db2b810d671856e3d258a0e184d4f"><div class="ttname"><a href="group__enumerations.html#ga541db2b810d671856e3d258a0e184d4f">audio_driver::PinLogic</a></div><div class="ttdeci">PinLogic</div><div class="ttdoc">input or output</div><div class="ttdef"><b>Definition:</b> DriverPins.h:33</div></div>
<div class="ttc" id="anamespaceaudio__driver_html"><div class="ttname"><a href="namespaceaudio__driver.html">audio_driver</a></div><div class="ttdef"><b>Definition:</b> AudioBoard.h:5</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_a25716c39f0f3e90d31ed6c5084f9d358"><div class="ttname"><a href="namespaceaudio__driver.html#a25716c39f0f3e90d31ed6c5084f9d358">audio_driver::ESP32PinsSD</a></div><div class="ttdeci">static PinsSPI ESP32PinsSD</div><div class="ttdoc">Default SPI pins for ESP32 Lyrat, AudioDriver etc CLK, MISO, MOSI, CS.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:179</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_a4c343c4d8992a509dce6cff41726322a"><div class="ttname"><a href="namespaceaudio__driver.html#a4c343c4d8992a509dce6cff41726322a">audio_driver::GpioPin</a></div><div class="ttdeci">int16_t GpioPin</div><div class="ttdef"><b>Definition:</b> DriverPins.h:25</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga0e38a8cbaae36dea9c9053a4ee8f9e18a1b0a91ff3a855d6993930ebf0abaa518"><div class="ttname"><a href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a1b0a91ff3a855d6993930ebf0abaa518">audio_driver::KEY_MODE</a></div><div class="ttdeci">@ KEY_MODE</div><div class="ttdef"><b>Definition:</b> DriverPins.h:73</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga0e38a8cbaae36dea9c9053a4ee8f9e18a2304f457aba66febcf852dbf1cbae8b0"><div class="ttname"><a href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a2304f457aba66febcf852dbf1cbae8b0">audio_driver::KEY_VOLUME_DOWN</a></div><div class="ttdeci">@ KEY_VOLUME_DOWN</div><div class="ttdef"><b>Definition:</b> DriverPins.h:76</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga0e38a8cbaae36dea9c9053a4ee8f9e18a368a9f9c881efcaf697bdbd9d6e5cd8d"><div class="ttname"><a href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a368a9f9c881efcaf697bdbd9d6e5cd8d">audio_driver::KEY_SET</a></div><div class="ttdeci">@ KEY_SET</div><div class="ttdef"><b>Definition:</b> DriverPins.h:75</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga0e38a8cbaae36dea9c9053a4ee8f9e18a55c7db415d84b1af47010601aa8053e7"><div class="ttname"><a href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18a55c7db415d84b1af47010601aa8053e7">audio_driver::KEY_PLAY</a></div><div class="ttdeci">@ KEY_PLAY</div><div class="ttdef"><b>Definition:</b> DriverPins.h:74</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga0e38a8cbaae36dea9c9053a4ee8f9e18aa67b95b87566b12f21da0f8dc7224e9c"><div class="ttname"><a href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18aa67b95b87566b12f21da0f8dc7224e9c">audio_driver::KEY_REC</a></div><div class="ttdeci">@ KEY_REC</div><div class="ttdef"><b>Definition:</b> DriverPins.h:72</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga0e38a8cbaae36dea9c9053a4ee8f9e18aedbb585f9e7ee87263a250c91542fb02"><div class="ttname"><a href="namespaceaudio__driver.html#ga0e38a8cbaae36dea9c9053a4ee8f9e18aedbb585f9e7ee87263a250c91542fb02">audio_driver::KEY_VOLUME_UP</a></div><div class="ttdeci">@ KEY_VOLUME_UP</div><div class="ttdef"><b>Definition:</b> DriverPins.h:77</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54"><div class="ttname"><a href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa29c2c02a361c9d7028472e5d92cd4a54">audio_driver::PinLogic::Output</a></div><div class="ttdeci">@ Output</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga541db2b810d671856e3d258a0e184d4fa324118a6721dd6b8a9b9f4e327df2bf5"><div class="ttname"><a href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa324118a6721dd6b8a9b9f4e327df2bf5">audio_driver::PinLogic::Input</a></div><div class="ttdeci">@ Input</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga541db2b810d671856e3d258a0e184d4fa3cab03c00dbd11bc3569afa0748013f0"><div class="ttname"><a href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa3cab03c00dbd11bc3569afa0748013f0">audio_driver::PinLogic::Inactive</a></div><div class="ttdeci">@ Inactive</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga541db2b810d671856e3d258a0e184d4fa5b29dd72614886bd07cc85d9efc6e11b"><div class="ttname"><a href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fa5b29dd72614886bd07cc85d9efc6e11b">audio_driver::PinLogic::InputActiveTouch</a></div><div class="ttdeci">@ InputActiveTouch</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga541db2b810d671856e3d258a0e184d4fad1f4343083391d4134755122ffd1bdad"><div class="ttname"><a href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4fad1f4343083391d4134755122ffd1bdad">audio_driver::PinLogic::InputActiveHigh</a></div><div class="ttdeci">@ InputActiveHigh</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840"><div class="ttname"><a href="namespaceaudio__driver.html#ga541db2b810d671856e3d258a0e184d4faf85e76a7d5932924d3a4fca6f1352840">audio_driver::PinLogic::InputActiveLow</a></div><div class="ttdeci">@ InputActiveLow</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafa0301a754913dd38062217d6b511a1696"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa0301a754913dd38062217d6b511a1696">audio_driver::PinFunction::MCLK_SOURCE</a></div><div class="ttdeci">@ MCLK_SOURCE</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa06f6a489209115c5cef3f45036aad3ec">audio_driver::PinFunction::PA</a></div><div class="ttdeci">@ PA</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafa0db45d2a4141101bdfe48e3314cfbca3"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa0db45d2a4141101bdfe48e3314cfbca3">audio_driver::PinFunction::UNDEFINED</a></div><div class="ttdeci">@ UNDEFINED</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafa38f99abbc1d339c277c0669e7bc373c0"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa38f99abbc1d339c277c0669e7bc373c0">audio_driver::PinFunction::SD</a></div><div class="ttdeci">@ SD</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa3b5949e0c26b87767a4752a276de9570">audio_driver::PinFunction::KEY</a></div><div class="ttdeci">@ KEY</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa472015a17943a0dd74293f32ce088542">audio_driver::PinFunction::CODEC</a></div><div class="ttdeci">@ CODEC</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa53e0dbc06e48e3d381ac224fa8bae3df">audio_driver::PinFunction::LED</a></div><div class="ttdeci">@ LED</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafa9decb49b0b8a11118da5ae919a09e766"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafa9decb49b0b8a11118da5ae919a09e766">audio_driver::PinFunction::HEADPHONE_DETECT</a></div><div class="ttdeci">@ HEADPHONE_DETECT</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafab5859d8721cfdc0312b2838b9c985bc1"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafab5859d8721cfdc0312b2838b9c985bc1">audio_driver::PinFunction::RESET</a></div><div class="ttdeci">@ RESET</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafab6e3c1cdb5c43961a2e081ef2564ba2e"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafab6e3c1cdb5c43961a2e081ef2564ba2e">audio_driver::PinFunction::LATCH</a></div><div class="ttdeci">@ LATCH</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafac9c9c146c630ca5ef9197c73c032f4a6"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafac9c9c146c630ca5ef9197c73c032f4a6">audio_driver::PinFunction::POWER</a></div><div class="ttdeci">@ POWER</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafacc567fdd9cbeac32e7b50b6ffd06f0d4"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafacc567fdd9cbeac32e7b50b6ffd06f0d4">audio_driver::PinFunction::CODEC_ADC</a></div><div class="ttdeci">@ CODEC_ADC</div></div>
<div class="ttc" id="anamespaceaudio__driver_html_ga6b03ddbf1e0f5abd0e46e02555850aafadba053ed3f4606dd1426d1b170ef106b"><div class="ttname"><a href="namespaceaudio__driver.html#ga6b03ddbf1e0f5abd0e46e02555850aafadba053ed3f4606dd1426d1b170ef106b">audio_driver::PinFunction::AUXIN_DETECT</a></div><div class="ttdeci">@ AUXIN_DETECT</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_function_html"><div class="ttname"><a href="structaudio__driver_1_1_pins_function.html">audio_driver::PinsFunction</a></div><div class="ttdoc">Pins for LED, Buttons, AMP etc.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:251</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_function_html_a03c996f9fcf0e10baeb3e700be0c409a"><div class="ttname"><a href="structaudio__driver_1_1_pins_function.html#a03c996f9fcf0e10baeb3e700be0c409a">audio_driver::PinsFunction::active</a></div><div class="ttdeci">bool active</div><div class="ttdef"><b>Definition:</b> DriverPins.h:264</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_function_html_a6c2a512f513ff43c0f98a046fbabad03"><div class="ttname"><a href="structaudio__driver_1_1_pins_function.html#a6c2a512f513ff43c0f98a046fbabad03">audio_driver::PinsFunction::PinsFunction</a></div><div class="ttdeci">PinsFunction(PinFunction function, GpioPin pin, PinLogic logic, int index=0)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:253</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_function_html_a750b5d744c39a06bfb13e6eb010e35d0"><div class="ttname"><a href="structaudio__driver_1_1_pins_function.html#a750b5d744c39a06bfb13e6eb010e35d0">audio_driver::PinsFunction::index</a></div><div class="ttdeci">int index</div><div class="ttdef"><b>Definition:</b> DriverPins.h:262</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_function_html_abb771316816bb9f9b1ccb016bbdbad5e"><div class="ttname"><a href="structaudio__driver_1_1_pins_function.html#abb771316816bb9f9b1ccb016bbdbad5e">audio_driver::PinsFunction::pin_logic</a></div><div class="ttdeci">PinLogic pin_logic</div><div class="ttdef"><b>Definition:</b> DriverPins.h:263</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_function_html_aeabac9491522ec7f68102bfeab33d5c1"><div class="ttname"><a href="structaudio__driver_1_1_pins_function.html#aeabac9491522ec7f68102bfeab33d5c1">audio_driver::PinsFunction::pin</a></div><div class="ttdeci">int pin</div><div class="ttdef"><b>Definition:</b> DriverPins.h:261</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_function_html_affc9db000aeafd2b8bc4a905b8ec7467"><div class="ttname"><a href="structaudio__driver_1_1_pins_function.html#affc9db000aeafd2b8bc4a905b8ec7467">audio_driver::PinsFunction::PinsFunction</a></div><div class="ttdeci">PinsFunction()=default</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html">audio_driver::PinsI2C</a></div><div class="ttdoc">I2C pins.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:186</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a3e2bb798e2f223fbf471e1c2b634d803"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a3e2bb798e2f223fbf471e1c2b634d803">audio_driver::PinsI2C::scl</a></div><div class="ttdeci">GpioPin scl</div><div class="ttdef"><b>Definition:</b> DriverPins.h:202</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a55ca58ba71e8274ece07c6455513ad8e"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a55ca58ba71e8274ece07c6455513ad8e">audio_driver::PinsI2C::PinsI2C</a></div><div class="ttdeci">PinsI2C()=default</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a601fb7cf1fc15db50c71a826f084f934"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a601fb7cf1fc15db50c71a826f084f934">audio_driver::PinsI2C::begin</a></div><div class="ttdeci">bool begin()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:209</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a63c89c04d1feae07ca35558055155ffb"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a63c89c04d1feae07ca35558055155ffb">audio_driver::PinsI2C::port</a></div><div class="ttdeci">int port</div><div class="ttdef"><b>Definition:</b> DriverPins.h:201</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a64bff2ba6d0ee2ba3a79ff999af30243"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a64bff2ba6d0ee2ba3a79ff999af30243">audio_driver::PinsI2C::PinsI2C</a></div><div class="ttdeci">PinsI2C(PinFunction function, GpioPin scl, GpioPin sda, int port=-1, uint32_t frequency=100000, TwoWire &amp;wire=Wire, bool active=true)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:188</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_a682f8efbc92ac93c85e4f18798050bb7"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#a682f8efbc92ac93c85e4f18798050bb7">audio_driver::PinsI2C::p_wire</a></div><div class="ttdeci">TwoWire * p_wire</div><div class="ttdef"><b>Definition:</b> DriverPins.h:205</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_aaf81d3fdaf258088d7692fa70cece087"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#aaf81d3fdaf258088d7692fa70cece087">audio_driver::PinsI2C::end</a></div><div class="ttdeci">void end()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:239</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_ab632fb0b4d5156ea4df0b1e15410e913"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#ab632fb0b4d5156ea4df0b1e15410e913">audio_driver::PinsI2C::frequency</a></div><div class="ttdeci">uint32_t frequency</div><div class="ttdef"><b>Definition:</b> DriverPins.h:200</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_ad52eccd1bc2d4dfdb82e132cd695898e"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#ad52eccd1bc2d4dfdb82e132cd695898e">audio_driver::PinsI2C::pinsAvailable</a></div><div class="ttdeci">bool pinsAvailable()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:206</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_ada2a63b4baedf5b15ec9eaf1c575d208"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#ada2a63b4baedf5b15ec9eaf1c575d208">audio_driver::PinsI2C::function</a></div><div class="ttdeci">PinFunction function</div><div class="ttdef"><b>Definition:</b> DriverPins.h:199</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_ae3eace66d9648e8cb1d9c5c7a03f56a0"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#ae3eace66d9648e8cb1d9c5c7a03f56a0">audio_driver::PinsI2C::sda</a></div><div class="ttdeci">GpioPin sda</div><div class="ttdef"><b>Definition:</b> DriverPins.h:203</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_c_html_afcc542ba9c5c0e2fbba65a0feab74508"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_c.html#afcc542ba9c5c0e2fbba65a0feab74508">audio_driver::PinsI2C::set_active</a></div><div class="ttdeci">bool set_active</div><div class="ttdef"><b>Definition:</b> DriverPins.h:204</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html">audio_driver::PinsI2S</a></div><div class="ttdoc">I2S pins.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:85</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a08fd44e3f772a1d565da79e42a02f18d"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a08fd44e3f772a1d565da79e42a02f18d">audio_driver::PinsI2S::PinsI2S</a></div><div class="ttdeci">PinsI2S(PinFunction function, GpioPin mclk, GpioPin bck, GpioPin ws, GpioPin data_out, GpioPin data_in=-1, int port=0)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:87</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a0e25036823a3287fa16f299cb6295873"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a0e25036823a3287fa16f299cb6295873">audio_driver::PinsI2S::ws</a></div><div class="ttdeci">GpioPin ws</div><div class="ttdef"><b>Definition:</b> DriverPins.h:100</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a5e6e78c05e863124b3a66b46fa4e2370"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a5e6e78c05e863124b3a66b46fa4e2370">audio_driver::PinsI2S::PinsI2S</a></div><div class="ttdeci">PinsI2S()=default</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a63c89c04d1feae07ca35558055155ffb"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a63c89c04d1feae07ca35558055155ffb">audio_driver::PinsI2S::port</a></div><div class="ttdeci">int port</div><div class="ttdef"><b>Definition:</b> DriverPins.h:103</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_a8c7a8c2803dd2899881ecc66ac0c8366"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#a8c7a8c2803dd2899881ecc66ac0c8366">audio_driver::PinsI2S::bck</a></div><div class="ttdeci">GpioPin bck</div><div class="ttdef"><b>Definition:</b> DriverPins.h:99</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_ab7f9508e45dcba4a7ea4d07626966dfa"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#ab7f9508e45dcba4a7ea4d07626966dfa">audio_driver::PinsI2S::data_out</a></div><div class="ttdeci">GpioPin data_out</div><div class="ttdef"><b>Definition:</b> DriverPins.h:101</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_ada2a63b4baedf5b15ec9eaf1c575d208"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#ada2a63b4baedf5b15ec9eaf1c575d208">audio_driver::PinsI2S::function</a></div><div class="ttdeci">PinFunction function</div><div class="ttdef"><b>Definition:</b> DriverPins.h:97</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_ae4420d2deba4632c54badb549d9cfb37"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#ae4420d2deba4632c54badb549d9cfb37">audio_driver::PinsI2S::mclk</a></div><div class="ttdeci">GpioPin mclk</div><div class="ttdef"><b>Definition:</b> DriverPins.h:98</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_i2_s_html_aea33a3f8aa9758519c4bc3ff146440b4"><div class="ttname"><a href="structaudio__driver_1_1_pins_i2_s.html#aea33a3f8aa9758519c4bc3ff146440b4">audio_driver::PinsI2S::data_in</a></div><div class="ttdeci">GpioPin data_in</div><div class="ttdef"><b>Definition:</b> DriverPins.h:102</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html">audio_driver::PinsSPI</a></div><div class="ttdoc">SPI pins.</div><div class="ttdef"><b>Definition:</b> DriverPins.h:111</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a401cec32c23b8dfc8052bd73d7ae6b02"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a401cec32c23b8dfc8052bd73d7ae6b02">audio_driver::PinsSPI::cs</a></div><div class="ttdeci">GpioPin cs</div><div class="ttdef"><b>Definition:</b> DriverPins.h:128</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a601fb7cf1fc15db50c71a826f084f934"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a601fb7cf1fc15db50c71a826f084f934">audio_driver::PinsSPI::begin</a></div><div class="ttdeci">bool begin()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:132</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a7918aeda38988c6d047b1abe185d6c20"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a7918aeda38988c6d047b1abe185d6c20">audio_driver::PinsSPI::miso</a></div><div class="ttdeci">GpioPin miso</div><div class="ttdef"><b>Definition:</b> DriverPins.h:126</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a7e3aed00eb1f288f9a7fb667184c93f9"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a7e3aed00eb1f288f9a7fb667184c93f9">audio_driver::PinsSPI::p_spi</a></div><div class="ttdeci">SPIClass * p_spi</div><div class="ttdef"><b>Definition:</b> DriverPins.h:124</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_a880128a884b3a7f31cf7ff9a08e442bf"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#a880128a884b3a7f31cf7ff9a08e442bf">audio_driver::PinsSPI::clk</a></div><div class="ttdeci">GpioPin clk</div><div class="ttdef"><b>Definition:</b> DriverPins.h:125</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_aa6c887a5f0a8006909fef52ec4eccf12"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#aa6c887a5f0a8006909fef52ec4eccf12">audio_driver::PinsSPI::PinsSPI</a></div><div class="ttdeci">PinsSPI(PinFunction function, GpioPin clk, GpioPin miso, GpioPin mosi, GpioPin cs, SPIClass &amp;spi=SPI)</div><div class="ttdef"><b>Definition:</b> DriverPins.h:113</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_aaacbe29a5f1f6ddc9db766aba5c8155e"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#aaacbe29a5f1f6ddc9db766aba5c8155e">audio_driver::PinsSPI::PinsSPI</a></div><div class="ttdeci">PinsSPI()=default</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_aaf81d3fdaf258088d7692fa70cece087"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#aaf81d3fdaf258088d7692fa70cece087">audio_driver::PinsSPI::end</a></div><div class="ttdeci">void end()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:168</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_ad52eccd1bc2d4dfdb82e132cd695898e"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#ad52eccd1bc2d4dfdb82e132cd695898e">audio_driver::PinsSPI::pinsAvailable</a></div><div class="ttdeci">bool pinsAvailable()</div><div class="ttdef"><b>Definition:</b> DriverPins.h:130</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_ada2a63b4baedf5b15ec9eaf1c575d208"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#ada2a63b4baedf5b15ec9eaf1c575d208">audio_driver::PinsSPI::function</a></div><div class="ttdeci">PinFunction function</div><div class="ttdef"><b>Definition:</b> DriverPins.h:123</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_ae506f2c92d47737308ce15423fbfc049"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#ae506f2c92d47737308ce15423fbfc049">audio_driver::PinsSPI::mosi</a></div><div class="ttdeci">GpioPin mosi</div><div class="ttdef"><b>Definition:</b> DriverPins.h:127</div></div>
<div class="ttc" id="astructaudio__driver_1_1_pins_s_p_i_html_afcc542ba9c5c0e2fbba65a0feab74508"><div class="ttname"><a href="structaudio__driver_1_1_pins_s_p_i.html#afcc542ba9c5c0e2fbba65a0feab74508">audio_driver::PinsSPI::set_active</a></div><div class="ttdeci">bool set_active</div><div class="ttdef"><b>Definition:</b> DriverPins.h:129</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
